package logic.events;

import vis.KeyPanel;

public class Block extends CipherEvent {

	int x1, y1, x2, y2, phase;
	
	public Block(int x1, int y1, int x2, int y2, int phase) {
		this.x1 = x1;
		this.y1 = y1;
		this.x2 = x2;
		this.y2 = y2;
		this.phase = phase;
	}

	@Override
	public void display(KeyPanel panel) {
		panel.setHighlight(x1, y1, x2, y2);
		panel.setPhase(phase);
	}

}
